package cn.bluethink.eguan.model.core;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @title 驿馆+产品中的门派
 * @Copyright 苏州中科蓝迪公司所有(c)2016-2021
 * @version 0.1
 *
 * @note 修订历史： （1）giszyj@126.com于2018年10月06日设计并构建初始版本v1.0.0
 */
public class EgFaction extends EgObject {
    /**
     * 门派图标
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String icon;

    /**
     * 门派账户，为空时不返回到前端
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private EgAcount acount = null;

    /**
     * 季度年的开始月份(默认从1月份开始)
     */
    private Integer bmonth = 1;

    /**
     * 门派创建人（改为门派的帮主）
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private EgUser user;

    /**
     * 更新时间
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Date uTime;

    /**
     * @roseuid 5BB030BE01BB
     */
    public EgFaction() {
        setType(new EgOType(EgOType.FACTION, null));
    }

    /**
     * 创建门派业务模型对象
     * 
     * @param id
     * @param name
     * @param icon
     */
    public EgFaction(Long id, String name, String icon) {
        super(id, name, new EgOType(EgOType.FACTION, null));
        this.icon = icon;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public EgAcount getAcount() {
        return acount;
    }

    public void setAcount(EgAcount acount) {
        this.acount = acount;
    }

    public EgUser getUser() {
        return user;
    }

    public void setUser(EgUser user) {
        this.user = user;
    }

    public Date getuTime() {
        return uTime;
    }

    public void setuTime(Date uTime) {
        this.uTime = uTime;
    }

    public Integer getBmonth() {
        return bmonth;
    }

    public void setBmonth(Integer bmonth) {
        this.bmonth = bmonth;
    }

}
